﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Butcher.winform
{
    public class ApiResult
    {
        /// <summary>
        /// 响应码
        /// </summary>
        public int Code { get; set; }
        /// <summary>
        /// 返回值
        /// </summary>
        public object? Data { get; set; }
        /// <summary>
        /// 消息
        /// </summary>
        public string? Msg { get; set; }
    }
    public class ApiResult<T>
    {
        /// <summary>
        /// 响应码
        /// </summary>
        public int Code { get; set; }
        /// <summary>
        /// 返回值
        /// </summary>
        public T? Data { get; set; }
        /// <summary>
        /// 消息
        /// </summary>
        public string? Msg { get; set; }
    }
}
